﻿using System.Collections.Generic;
using Ue.Infrastructure.RepositoryFramework;
using Ue.Qcdz.Domain.Membership;
using Ue.Qcdz.Domain.SaleCategorys;

namespace Ue.Qcdz.Domain.SaleInfos
{
    public interface ISaleInfoRepository : IRepository<SaleInfo>
    {
        IList<SaleInfo> GetTop(int num);
        IList<SaleInfo> FindBy(string keyWord, SaleInfoEnum saleType);
        IList<SaleInfo> FindBy(string userId, string shopId);
        IList<SaleInfo> FindBy(string shopId);
        IList<SaleInfo> FindBy(int num, SaleInfoEnum saleType);
        /// <summary>
        /// 按分类来获取产品
        /// </summary>
        IList<SaleInfo> FindBy(SaleCategory category);
        int GetCount(User user);
        /// <summary>
        /// 删除某个商铺所有产品
        /// </summary>
        /// <param name="shop"></param>
        void RemoveAll(Shops.Shop shop);

    }
}
